<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改链路')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-data-edit" th:object="${apmAppData}">
            <input name="dataId" th:field="*{dataId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">appId：</label>
                <div class="col-sm-8">
                    <input name="appId" th:field="*{appId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">traceId：</label>
                <div class="col-sm-8">
                    <input name="traceId" th:field="*{traceId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">parentId：</label>
                <div class="col-sm-8">
                    <input name="parentId" th:field="*{parentId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">spanId：</label>
                <div class="col-sm-8">
                    <input name="spanId" th:field="*{spanId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">hostIp：</label>
                <div class="col-sm-8">
                    <input name="hostIp" th:field="*{hostIp}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">hostName：</label>
                <div class="col-sm-8">
                    <input name="hostName" th:field="*{hostName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">requestUrl：</label>
                <div class="col-sm-8">
                    <input name="requestUrl" th:field="*{requestUrl}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">className：</label>
                <div class="col-sm-8">
                    <input name="className" th:field="*{className}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">methodName：</label>
                <div class="col-sm-8">
                    <input name="methodName" th:field="*{methodName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">type：</label>
                <div class="col-sm-8">
                    <select name="type" class="form-control m-b" th:field="*{type}">
                        <option value="">所有</option>
                        <option th:if="*{type eq 'ServiceCollect'}" th:selected="selected" value="ServiceCollect">ServiceCollect</option>
                        <option th:if="*{type eq 'ControllerCollect'}" th:selected="selected" value="ControllerCollect">ControllerCollect</option>
                        <option th:if="*{type eq 'MybatisCollect'}" th:selected="selected" value="MybatisCollect">MybatisCollect</option>
                    </select>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">startTime：</label>
                <div class="col-sm-8">
                    <!--th:text="${#dates.format(apmAppData.startTime, 'yyyy-MM-dd HH:mm:ss')}"-->
                    <input name="startTime" th:field="*{startTime}"
                           class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">endTime：</label>
                <div class="col-sm-8">
                    <!--th:value="${#dates.format(apmAppData.endTime, 'dd-MMM-yyyy')"}-->
                    <!--th:text="${#dates.format(apmAppData.endTime, 'yyyy-MM-dd HH:mm:ss')}"-->
                    <input name="endTime" th:field="*{endTime}"
                            class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">costTime：</label>
                <div class="col-sm-8">
                    <input name="costTime" th:field="*{costTime}"  class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">visitUserId：</label>
                <div class="col-sm-8">
                    <input name="visitUserId" th:field="*{visitUserId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">comment：</label>
                <div class="col-sm-8">
                    <div class="radio-box">
                        <input type="radio" name="status" value="">
                        <label th:for="status" th:text="未知"></label>
                    </div>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i>代码生成请选择字典属性</span>

                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "trace/data";
        $("#form-data-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-data-edit').serialize());
            }
        }
    </script>
</body>
</html>